package main

import (
	"fmt"
)

type People struct{
	Name string
	Country string
}

func (p People) print() {
    fmt.Printf("name = %s country = %s",p.Name,p.Country)
	
}
func (p People) Set(name string,country string)  {
	p.Name = name
	p.Country = country
}
func main()  {
	var p1 People = People{
		Name:"people01",
		Country:"china",
	}
	p1.print()
	p1.Set("people02","chile")
	p1.print()
	
}